<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>卫校微信小程序后台</title>
    <!-- Bootstrap Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FontAwesome Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/css/font-awesome.css" rel="stylesheet" />
    <!-- Morris Chart Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
    <!-- Custom Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/css/custom-styles.css" rel="stylesheet" />
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <link rel="stylesheet" href="/nurses_school/Admin/Public/admin/assets/js/Lightweight-Chart/cssCharts.css">
    <!-- jQuery Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/jquery-1.10.2.js"></script>
</head>

<body>
    <div id="wrapper">
        <nav class="navbar navbar-default top-navbar" role="navigation">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><strong><i class="icon fa fa-plane"></i> 卫校微信小程序</strong></a>
				
		<div id="sideNav" href="">
		<i class="fa fa-bars icon"></i> 
		</div>
            </div>

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-messages">
                        <?php foreach($newMessage as $k=>$v){?>
                        <li>
                            <a href="#">
                                <div>
                                    <strong><?php echo $v['name']?></strong>
                                    <!-- <span class="pull-right text-muted">
                                        <em><?php echo $v['phone']?></em>
                                    </span> -->
                                </div>
                                <div><?php echo $v['time']?></div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <?php }?>
                        <li>
                            <a class="text-center" href="<?php echo U('Message/index');?>">
                                <strong>查看全部</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-messages -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="#"><i class="fa fa-user fa-fw"></i> <?php echo ($_COOKIE['aoqianwx_account_name']); ?></a>
                        </li>
                        <!-- <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                        </li> -->
                        <li class="divider"></li>
                        <li><a href="<?php echo U('login/logout');?>"><i class="fa fa-sign-out fa-fw"></i> 退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
        </nav>
        <!--/. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
                    <li>
                        <a <?php echo $controllerName=="Index"?'class="active-menu"':"";?> href="javascript:void(0);"><i class="fa fa-table"></i>产品管理</a>
                        <ul class="nav nav-second-level collapse in" aria-expanded="true" style="">
                            <li>
                                <a  href="<?php echo U('Index/index');?>">banner设置</a>
                            </li>
                            <li>
                                <a href="<?php echo U('Index/index1');?>">小程序2banner设置</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a <?php echo $controllerName=="Contact"?'class="active-menu"':"";?> href="<?php echo U('Contact/index');?>"><i class="fa fa-file"></i>申请报名</a>
                    </li>	
                    
                    <li>
                        <a <?php echo $controllerName=="Major"?'class="active-menu"':"";?> href="<?php echo U('Major/index');?>"><i class="fa fa-table"></i>专业管理</a>
                    </li>
                    <li>
                        <a <?php echo $controllerName=="News"?'class="active-menu"':"";?> href="<?php echo U('News/index');?>"><i class="fa fa-table"></i>新闻管理</a>
                    </li>
                    <li>
                        <a <?php echo $controllerName=="Message"?'class="active-menu"':"";?> href="<?php echo U('Message/index');?>"><i class="fa fa-envelope"></i>在线留言</a>
                    </li>
                    <!-- <li>
                        <a href="form.html"><i class="fa fa-edit"></i> Forms </a>
                    </li> -->
                    <li>
                        <a href="https://mpkf.weixin.qq.com/cgi-bin/kfloginpage" target="_blank"><i class="fa fa-comments-o"></i>进入微信在线咨询</a>
                    </li>
                </ul>

            </div>

        </nav>
        <!-- /. NAV SIDE  -->
      
		<div id="page-wrapper">
            <style>
    ul{list-style: none;padding: 0px;}
    .banner-list li{
        float: left;
        margin:12px 5%;
        width: 40%;
        padding: 2%;
        border: 1px solid #C0C0C0;
        border-radius: 12px;
        position: relative;
        box-shadow: 0px 0px 6px #C0C0C0;
    }
    .banner-list li:hover{
        border: 1px solid #0294DD;
        box-shadow: 0px 0px 6px #0294DD;
    }
    .banner-list .sort{
        font-size: 32px;
    }
    .banner-list .sort input{
        display: inline-block;
        width: 40px;
        border: 1px solid #EDEDED;
        background-color: transparent;
    }
    .banner-list li:hover .sort{
        color: #0294DD;
    }
    .banner-list li:hover input{
        border: 1px solid #0294DD;
    }
    .banner-list li img{
        width: 80%;
        height: 100px;
    }
    .banner-list li .glyphicon-remove{
        position: absolute;
        font-size: 24px;
        right: -12px;
        top:-9px;
        cursor: pointer;
    }
    .banner-list li a{
        color: #3E3E3E;
    }
    .banner-list li:hover a{
        color: #0294DD;
    }
</style>
<div class="header"> 
    <h1 class="page-header">
        banner设置
    </h1>
    <ol class="breadcrumb">
        <li><a href="#">首页</a></li>
        <li class="active"><a href="#">banner设置</a></li>
    </ol> 

</div>
<div id="page-inner">
    <!-- 内容开始 -->
    <div class="row">

        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                banner列表
                </div> 
                <div class="panel-body"> 
                    <ul class="banner-list">        
                        <?php foreach($bannerList as $k=>$v){ ?>
                        <li>
                            <input type="hidden" name="id" value="<?php echo ($v['id']); ?>">
                            <img src="<?php echo ($v['imgurl']); ?>" alt="">
                            <a href="<?php echo U('index/del',array('id'=>$v['id'])); ?>"><i class="glyphicon glyphicon-remove"></i></a>
                        </li>
                        <?php } ?>
                    </ul>
                </div>
            </div>
        </div>                      
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="card-title">
                        <div class="title">上传图片</div>
                    </div>
                </div>
                <div class="panel-body">
                    <form method="post" action="<?php echo U('Index/upload_banner');?>" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>上传图片</label>
                            <input type="file" name="imgurl">
                            <p class="help-block">上传图片小于2M（格式为jpg, gif, png, jpeg）</p>
                        </div>
                        <button type="submit" class="btn btn-default">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- 内容结束 -->

</div>
<!-- /. PAGE INNER  -->
<script>
    $(function(){

    })
</script>
        </div>
        <!-- /. PAGE WRAPPER  -->
    </div>
    <!-- /. WRAPPER  -->
    <!-- JS Scripts-->
    
    <!-- Bootstrap Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/bootstrap.min.js"></script>
	 
    <!-- Metis Menu Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/jquery.metisMenu.js"></script>
    <!-- Morris Chart Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/morris/raphael-2.1.0.min.js"></script>
    <!-- Custom Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/custom-scripts.js"></script>

</body>

</html>